//
//  MM_PublicHUD.m
//  MallManage_IOS
//
//  Created by 张浩 on 2023/12/18.
//

#import "MM_PublicHUD.h"
#import "MBProgressHUD.h"

@implementation MM_PublicHUD

+ (void)showStateText:(NSString *)hint {
    
    //显示提示信息
    UIView *view = [[UIApplication sharedApplication].delegate window];
    //        MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];
    MBProgressHUD *hud = [[MBProgressHUD alloc] initWithView:view];
    [view addSubview:hud];
    hud.userInteractionEnabled = NO;
    [hud showAnimated:YES];
    hud.mode = MBProgressHUDModeText;
    hud.detailsLabel.text = hint;
    //    hud.labelText = hint;
    hud.margin = 10.f;
    //    hud.yOffset = IS_IPHONE_5?200.f:150.f;
//    hud.yOffset = (view.h - hud.h) / 2;
    hud.removeFromSuperViewOnHide = YES;
    [hud hideAnimated:YES afterDelay:2.0];
}

@end
